/*
 * Copyright 2011 Sebastian Maurer
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package erepublik.dto;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlRootElement(name="region")
@XmlAccessorType(XmlAccessType.FIELD)
public class RegionCitizens extends IDType {

	@XmlJavaTypeAdapter(value=IntegerAdapter.class)
	@XmlElementWrapper(name="citizens")
	@XmlElement(name="citizen")
	private List<Integer> citizens;
	
	@XmlElement(name="page-count")
	private Integer pageCount;
	
	@XmlElement(name="citizen-count")
	private Integer citizenCount;
	
	@XmlElement(name="current-page")
	private Integer currentPage;

	public void setCitizens(List<Integer> citizens) {
		this.citizens = citizens;
	}

	public List<Integer> getCitizens() {
		return citizens;
	}

	public Integer getPageCount() {
		return pageCount;
	}

	public void setPageCount(Integer pageCount) {
		this.pageCount = pageCount;
	}

	public Integer getCitizenCount() {
		return citizenCount;
	}

	public void setCitizenCount(Integer citizenCount) {
		this.citizenCount = citizenCount;
	}

	public Integer getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}
	
}
